package com.whfc.fse.enums;

/**
 * 升降机轿厢方位
 *
 * @author qzexing
 * @version 1.0
 * @date 2020-12-23 09:51
 */
public enum FseLiftSide {

    LEFT(1, "左"),
    RIGHT(2, "右");

    private Integer value;

    private String desc;

    FseLiftSide(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static FseLiftSide parseValue(Integer value) {
        switch (value) {
            case 1:
                return LEFT;
            case 2:
                return RIGHT;
            default:
                return null;
        }
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
